package com.wanlong.rpc.service;

import com.github.pagehelper.PageInfo;
import com.wanlong.sys.model.SysPrivilege;
import com.wanlong.sys.model.SysRole;
import com.wanlong.sys.model.SysUser;

import java.util.List;

public interface SysMemberManagerService {
    public long insertSysUser(SysUser sysUser);
    public int updateSysUser(SysUser sysUser);
    public int deleteSysUser(SysUser sysUser);
    public SysUser getSysUserById(Long id);
    public SysUser getSysUserByLoginName(String loginName);
    public PageInfo<SysUser> getPageSysUserListByName(String loginName, Integer pageNo, Integer pageSize);


    public long insertSysRole(SysRole sysRole);
    public int updateSysRole(SysRole sysRole);
    public int deleteSysRole(SysRole sysRole);
    public PageInfo<SysRole> getPageSysRoleListByName(String name, Integer pageNo, Integer pageSize);
    public List<SysRole> getAllSysRoleList();
    public Long[] getRolesByUser(long userId);

    public long insertSysPrivilege(SysPrivilege sysPrivilege);
    public int updateSysPrivilege(SysPrivilege sysPrivilege);
    public int deleteSysPrivilege(SysPrivilege sysPrivilege);
    public PageInfo<SysPrivilege> getPageSysPrivilegeListByName(String name, Integer pageNo, Integer pageSize);


}
